function CreateClock(){



$('body').append("<a id='DesktopClock'></a>");
setTimeout("UpdateClock()", 1000);
}

function UpdateClock()
{
	d = new Date();
	nhour  = d.getHours();
	nmin   = d.getMinutes();
	nsec   = d.getSeconds();

	     if(nhour ==  0) {ap = " AM";nhour = 12;} 
	else if(nhour <= 11) {ap = " AM";} 
	else if(nhour == 12) {ap = " PM";} 
	else if(nhour >= 13) {ap = " PM";nhour -= 12;}

	if(nmin <= 9) {nmin = "0" +nmin;}
	if(nsec <= 9) {nsec = "0" +nsec;}
	
	$('#DesktopClock').text(	""+nhour+":"+nmin+":"+nsec+ap+"");
	setTimeout("UpdateClock()", 1000);
}